@import './transition.less';
@import './antDesign.less';
// @import './variables.less';

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  // border: 0;
  // font-size: 100%;
  // font: inherit;
  // vertical-align: baseline;
  // text-decoration: none;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial,
    sans-serif;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

svg path {
  fill: currentColor;
}

/*清除浮动*/
.clearfix:before,
.clearfix:after {
  content: '';
  display: block;
  visibility: hidden;
  clear: both;
}

// 记住密码默认背景颜色和字体颜色
input:-webkit-autofill,
input:-internal-autofill-previewed,
input:-internal-autofill-selected,
textarea:-webkit-autofill,
select:-webkit-autofill {
  background-color: transparent;
  background-image: none;
  transition: background-color 500000s ease-in-out 0s;
}

//滚动条的宽度
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
//滚动条的滑块
::-webkit-scrollbar-thumb {
  background-color: rgba(148, 153, 164, 0.3);
  border: 2px solid transparent;
  border-radius: 10px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 153, 164, 0.5);
}

::selection {
  background: #1890ff;
}

#app {
  height: 100%;
}

.global-asterisk-require::before {
  display: inline-block;
  margin-right: 4px;
  color: @error-color;
  font-weight: bold;
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: '*';
}

.global-disabled-text {
  color: #9499a4;
  cursor: not-allowed;
  &:hover,
  &:active,
  &:focus {
    color: #9499a4;
  }
}
.global-primary-text {
  color: @primary-color;
  cursor: pointer;
}
.global-active-status {
  position: relative;
  padding-left: 10px;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: @success-color;
  }
}
.global-stop-status {
  position: relative;
  padding-left: 10px;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c0c0c0;
  }
}
.global-wait-status {
  position: relative;
  padding-left: 10px;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: @warning-color;
  }
}
.global-error-status {
  position: relative;
  padding-left: 10px;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: @error-color;
  }
}
.global-certified-status {
  position: relative;
  padding-left: 10px;
  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #377e43;
  }
}
.global-txt-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}
.global-border-radius {
  border-radius: 10px;
}
.global-txt-center {
  text-align: center;
}

.global-drawer-title {
  padding-left: 12px;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: @text-color;
  line-height: 22px;
  position: relative;
  border-bottom: 1px solid #e8e8e8;
  &::before {
    content: '';
    width: 4px;
    height: 16px;
    background: @primary-color;
    border-radius: 2px;
    position: absolute;
    left: 0;
    top: 2px;
  }
}

.global-header-title {
  padding-left: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e1e6;
  display: flex;
  .title-content {
    font-weight: 600;
    color: @text-color-secondary;
    line-height: 20px;
    padding-bottom: 16px;
    position: relative;
    &::before {
      content: '';
      width: 40px;
      height: 4px;
      background: @primary-color;
      border-radius: 4px 4px 0 0;
      position: absolute;
      left: 50%;
      bottom: -1px;
      transform: translateX(-50%);
    }
  }
}

.require-icon-color {
  position: relative;
  &::before {
    content: '*';
    display: inline-block;
    margin-right: 4px;
    color: #c72a2a;
    font-size: 14px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    font-weight: 600;
  }
}
.global-tooltip-show {
  max-height: 400px;
  overflow-y: auto;
  p,
  table,
  li,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
  }
  p,
  table,
  li {
    font-weight: 400;
  }
  ul {
    padding-left: 32px;
    list-style-type: circle;
  }
  ol {
    list-style: decimal;
    padding-left: 32px;
  }
  li {
    margin-bottom: 6px;
  }
  p:last-child {
    margin-bottom: 0;
  }
  code,
  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  table {
    overflow-x: auto;
    th {
      word-break: keep-all;
      word-wrap: break-word;
    }
    th,
    td {
      padding: 2px 6px;
    }
  }
}
